﻿<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/bootstrap/css/bootstrap.min.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/bootstrap/css/bootstrap-theme.min.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/base/all.css")"  rel="stylesheet" type="text/css"  />

    <script src="@Url.Content("~/Scripts/modernizr-2.8.3.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery-1.10.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.11.4.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/bootstrap.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.metadata.js")" type="text/javascript"></script>
    @* <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.js")" type="text/javascript"></script>*@

    <style type="text/css">
        /*一级菜单*/
        .menu-first {
            background-color: #d6d4d5;
            padding: 10px 15px;
            font-size: 16px;
            font-weight: normal;
            text-align: left;
            border-radius: 4px;
            text-decoration: none;
            margin-bottom: 5px;
            display: block;
        }
            /*一级菜单鼠标划过状态*/
            .menu-first:hover {
                text-decoration: none;
                background-color: #d6d4d5;
                padding: 10px 15px;
                border-radius: 4px;
                display: block;
                text-decoration: none;
            }

            .menu-first a, .menu-first a:focus, .menu-first a:hover {
                text-decoration: none;
            }


        #collapseExample {
            margin: 10px 0;
        }
    </style>
    @RenderSection("styles", false)
    @RenderSection("scriptsLink", false)
    @RenderSection("scriptsHead", false)
</head>

<body>
    <div class="container">
        <div class="row">
            <div class="col-xs-12 col-md-2">

                @{
                    if (ViewBag.ConsignerId != null)
                    {
                    <nav>
                        <a class="menu-first" data-toggle="collapse" href="#warehouseManager" aria-expanded="false" aria-controls="warehouseManager">仓库管理</a>
                        <ul id="warehouseManager" class="nav nav-pills nav-stacked span2 collapse">
                            <li><a href='@Url.Action("Createhouse", "Warehouse")'>注册仓库</a></li>
                        </ul>
                    </nav>
                    <nav>
                        <a class="menu-first" data-toggle="collapse" href="#goodsManager" aria-expanded="false" aria-controls="goodsManager">货物管理</a>
                        <ul id="goodsManager" class="nav nav-pills nav-stacked span2 collapse">
                            <li><a href='@Url.Action("CreateCommodity", "Commodity")'>添加货物</a></li>
                            <li><a href='@Url.Action("CreateCommodityDetail", "Commodity")'>货物详情</a></li>
                        </ul>
                    </nav>
                    <nav>
                        <a class="menu-first" data-toggle="collapse" href="#ordersManager" aria-expanded="false" aria-controls="ordersManager">发货管理</a>
                        <ul id="ordersManager" class="nav nav-pills nav-stacked span2 collapse">
                            <li><a href='@Url.Action("UnShippedOrderList", "Order")'>待发货订单</a></li>
                            <li><a href='@Url.Action("ShippedOrderList", "Order")'>已发货订单</a></li>
                        </ul>
                    </nav>

                    <nav>
                        <a class="menu-first" data-toggle="collapse" href="#logisticsManager" aria-expanded="false" aria-controls="logisticsManager">物流管理</a>
                        <ul id="logisticsManager" class="nav nav-pills nav-stacked span2 collapse">
                            <li><a href='@Url.Action("CreateShippingTemplate", "Logistics")'>创建模板</a></li>
                        </ul>
                    </nav>
                    }
                    
                }


            </div>
            <div class="col-xs-12 col-md-10">
                @RenderBody()
            </div>
        </div>
    </div>
    @RenderSection("scriptsBody", required: false)
</body>
</html>
